﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using l1cs.server.model.Instance;

namespace l1cs.server.serverpackets
{
    public class S_HowManyMake : ServerBasePacket
    {
        public S_HowManyMake( int objId, int max, String htmlId )
        {
            writeC( Opcodes.S_OPCODE_INPUTAMOUNT );
            writeD( objId );
            writeD( 0 ); // ?
            writeD( 0 ); // スピンコントロールの初期価格
            writeD( 0 ); // 価格の下限
            writeD( max ); // 価格の上限
            writeH( 0 ); // ?
            writeS( "request" );
            writeS( htmlId );
        }

        override
        public byte[] getContent()
        {
            return getBytes();
        }

        override public String getType()
        {
            return "[S] S_HowManyMake";
        }
    }
}
